{include header.tpl}
{include nav.tpl}
{include search.tpl}

<div class="title">{$bbs['name']}-{if $digest}精帖{else}帖子{/if}列表-<a href="index.php?index-forum-fid-{$bbs['id']}{if !$digest}-d-j{/if}.htm">{if $digest}普通{else}精华{/if}</a>-<a href="index.php">首页</a></div>

{//hook tpl_index_forum_allstick_talks_before.htm}
{if !empty($allstick)}
	{foreach $allstick as $v}
		{//hook tpl_index_forum_allstick_talks_list_before.htm}
	<div class="l2"><font color="red">[顶]</font>{if $v['isdigest']}<font color="green">[精]</font>{/if}<a href="index.php?index-talk-tid-{$v['tid']}.htm">{$v['title']}({$v['tj']}/{$v['rtj']})</a></div>
		{//hook tpl_index_forum_allstick_talks_list_after.htm}
	{/foreach}
{/if}
{//hook tpl_index_forum_allstick_talks_after.htm}


{//hook tpl_index_forum_stick_talks_before.htm}
{if !empty($sticks)}
	{foreach $sticks as $v}
		{//hook tpl_index_forum_stick_talks_list_before.htm}
	<div class="l2"><font color="green">[顶]</font>{if $v['isdigest']}<font color="green">[精]</font>{/if}<a href="index.php?index-talk-tid-{$v['tid']}.htm">{$v['title']}({$v['tj']}/{$v['rtj']})</a></div>
		{//hook tpl_index_forum_stick_talks_list_after.htm}
	{/foreach}
{/if}
{//hook tpl_index_forum_stick_talks_after.htm}


{if empty($talks)}
	<div class="l2">暂无帖子</div>
{else}
	{foreach $talks as $v}
	<div class="l2">
	{if $bbs['id']==0}
		{//hook tpl_index_forum_admin_do_before.htm}
		[<a href="index.php?manage-deltalk-tid-{$v['tid']}.htm">删除</a>]
	{else}
		{if in_array($_user_uid, $bbs['master'])}
		{//hook tpl_index_forum_manage_do_before.htm}
		[<a href="index.php?manage-retalk-tid-{$v['tid']}.htm">回收</a>]
		{/if}
	{/if}
	{if $v['isdigest']}<font color="green">[精]</font>{/if}<a href="index.php?index-talk-tid-{$v['tid']}.htm">{$v['title']}({$v['tj']}/{$v['rtj']})</a><br/>
	<div class="grey">作者:{$v['aname']} [{$v['posttime']}]</div>
		{//hook tpl_index_forum_talk_title_end.htm}
	</div>
	{/foreach}
{/if}
{if $pages != ''}<div class="page l2">{$pages}</div>{/if}
<div class="list l2">版主：
{if !isset($bbs['master_name']) || empty($bbs['master_name'])}
暂无版主
{else}
{foreach $bbs['master_name'] as $k=>$v}
{$v},
{/foreach}
{/if}</div>
{if $bbs['id']!=0}
		{//hook tpl_index_forum_before_form.htm}
<script src="jy_src/js/face.js?{echo $jy_version_of_js;}"></script>
<a name="faceadd"></a>
<div class="title">快速发帖</div>
<div class="form-simp">
	<form action="index.php?simpost-simptalkadd.htm" method="post" name="simptalk">
		<p>标题(200字以内)：</p><p><input type="text" value="" name="title" class="form-input"/>
		<input type="hidden" value="{$bbs['id']}" name="fid"/></p>
		<p>内容：</p><p><textarea name="content" cols="26" rows="6" class="form-textarea" id="txtDemo"></textarea></p>
		{//hook tpl_index_forum_in_form.htm}
		<p><input type="submit" value="发布帖子" name="sub" class="submit"/>. <a href="#faceadd" onclick="showFace(event);">插入表情</a>. <a href="index.php?simpost-talkadd-fid-{$bbs['id']}.htm">高级发帖</a></p>
		<div id="facePanel"></div>
	</form>
</div>
{else}
<div class="l"><a href="index.php?admin.htm">后台首页</a></div>
{/if}
{include ly.tpl}
{include footer.tpl}